{"ast":null,"code":"/**\n * Safe chained function.\n *\n * Will only create a new function if needed,\n * otherwise will pass back existing functions or null.\n */\nexport default function createChainedFunction() {\n  for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) {\n    funcs[_key] = arguments[_key];\n  }\n  return funcs.reduce(function (acc, func) {\n    if (func == null) {\n      return acc;\n    }\n    return function chainedFunction() {\n      for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n        args[_key2] = arguments[_key2];\n      }\n      acc.apply(this, args);\n      func.apply(this, args);\n    };\n  }, function () {});\n}","map":{"version":3,"names":["createChainedFunction","funcs","reduce","acc","func","chainedFunction","args","apply"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@mui/utils/esm/createChainedFunction.js"],"sourcesContent":["/**\n * Safe chained function.\n *\n * Will only create a new function if needed,\n * otherwise will pass back existing functions or null.\n */\nexport default function createChainedFunction(...funcs) {\n  return funcs.reduce((acc, func) => {\n    if (func == null) {\n      return acc;\n    }\n    return function chainedFunction(...args) {\n      acc.apply(this, args);\n      func.apply(this, args);\n    };\n  }, () => {});\n}"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,SAASA,qBAAqB,GAAW;EAAA,kCAAPC,KAAK;IAALA,KAAK;EAAA;EACpD,OAAOA,KAAK,CAACC,MAAM,CAAC,UAACC,GAAG,EAAEC,IAAI,EAAK;IACjC,IAAIA,IAAI,IAAI,IAAI,EAAE;MAChB,OAAOD,GAAG;IACZ;IACA,OAAO,SAASE,eAAe,GAAU;MAAA,mCAANC,IAAI;QAAJA,IAAI;MAAA;MACrCH,GAAG,CAACI,KAAK,CAAC,IAAI,EAAED,IAAI,CAAC;MACrBF,IAAI,CAACG,KAAK,CAAC,IAAI,EAAED,IAAI,CAAC;IACxB,CAAC;EACH,CAAC,EAAE,YAAM,CAAC,CAAC,CAAC;AACd"},"metadata":{},"sourceType":"module"}